<?php
/**
 * Created by PhpStorm.
 * Author: QinShuai
 * Email: qinshuai0423@qq.com
 * Date: 2021/7/8
 */

/* @var $this yii\web\View */
/* @var $generator yii\gii\generators\controller\Generator */
echo "<?php\n";
?>

namespace <?= $generator->modelNamespace ?>;
/**
 * This is the model class for table "{{%<?= $generator->tableName ?>}}".
 *
 <?php foreach ($generator->getTableInfo()->columns as $val) {?>
* @property <?=$val->phpType?> $<?=$val->name.' '.$val->comment."\n"?>
 <?php } ?>
*/
class <?= $generator->parseModelName() ?> extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%<?= $generator->tableName ?>}}';
    }

}
